package com.minsu.dto;

import lombok.Data;
import lombok.Builder;

@Data
@Builder
public class LoginResponse {
    private boolean success;
    private String message;
    private String token;
    private String username;
    private String nickname;
    
    public static LoginResponse success(String username, String nickname, String token) {
        return LoginResponse.builder()
                .success(true)
                .username(username)
                .nickname(nickname)
                .token(token)
                .build();
    }
    
    public static LoginResponse error(String message) {
        return LoginResponse.builder()
                .success(false)
                .message(message)
                .build();
    }
} 